package com.yijiu.response;

import org.json.JSONException;
import org.json.JSONObject;

import com.yijiu.network.Response;
import com.yijiu.resource.UploadFile;

public class UploadFileResponse extends Response
{
	public UploadFile uploadFile;
	
	@Override
	protected void jsonToObject()
	{
		uploadFile = new UploadFile();
		try
		{
			JSONObject jsonObject = reposonJson.getJSONObject("result");
			uploadFile.code = jsonObject.optInt("code");
			uploadFile.message = jsonObject.optString("message");
			uploadFile.filePath = jsonObject.optString("filePath");
			uploadFile.status = jsonObject.optString("status");
		}
		catch (JSONException e)
		{
			e.printStackTrace();
		}
	}
}
